//Naming
Name M3 Bradley
ShortName m3bradley
//Visuals
Icon cow_iconbradley
Model CowPack.cow_bradley
Texture cow_skinbradley
//Third Person Camera Distance
CameraDistance 7.5
//Throttle
MaxThrottle 1.75
MaxNegativeThrottle 1
//Steering modifiers
TurnLeftSpeed 0.5
TurnRightSpeed 0.5
//For calculating whether wheels are on the ground or not for driving
WheelRadius 1.0
RotateWheels True 
//Wheel positions for collision handling. Tanks still have 4 wheels, they are just the corner ones.
WheelPosition 0 -32 -12 -18
WheelPosition 1 -32 -12 18
WheelPosition 2 32 -12 18
WheelPosition 3 32 -12 -18
WheelSpringStrength 0.5
//If true, then all wheels will apply drive forces
FourWheelDrive true
//Tank mode activate
Tank true
//Fuel Tank Size (1 point of fuel will keep one propeller going with throttle at 1 for 1 tick)
FuelTankSize 2000
//Inventory Slots
CargoSlots 5
ShellSlots 6
//Driver and passenger positions
Driver 0 38 0 -360 360 -9 45
RotatedDriverOffset -17 0 11
Passengers 0
//GunOrigin 1 0 40 0
BarrelPosition -47 20 -21.5
AllowAllAmmo False 
AddAmmo mk2atgm
//Secondary gun
AddGun 48 39 5 turret 25mmgun
//Delays are in ticks or 1/20ths of seconds
ShootDelay 4
ShellDelay 200
//Sounds
StartSound cowtankstart
StartSoundLength 20
EngineSound cowtankmove
EngineSoundLength 75
ShootSoundPrimary unguidedrocketfire
ShootSoundSecondary ifvshell
//Recipe
//Each section of the plane may have many parts
//The sections are tailWheel, tail, bay, topWing, leftWingWheel, leftWing, rightWingWheel,
//rightWing, nose, turret, coreWheel, core
AddRecipeParts turret 1 cowturret
AddRecipeParts core 1 cowchassis 2 advmetalcompound 15 metalcompound
AddRecipeParts leftTrack 2 cowwheel
AddRecipeParts rightTrack 2 cowwheel

//Health and collision
SetupPart core 125 -66 0 -21 130 34 42
SetupPart turret 125 -40 34 -21 50 16 42
SetupPart rightTrack 25 -66 -10 -31 130 23 10
SetupPart leftTrack 25 -66 -10 21 130 23 10

BulletDetection 5

//Size Multiplier; scales up the model
ModelScale 1.0
IsExplosionWhenDestroyed true

DriverAimSpeed 3.5 4.0 0
DriverYawBeforePitch false
DriverTraverseSounds true
YawSound TurretTraverse1
YawSoundLength 21
PitchSound TurretTraverse2
PitchSoundLength 20

TrackLinkLength 3

RightLinkPoint [58.5,10.5,-24]
RightLinkPoint [61.5,7.5,-24]
RightLinkPoint [61.5,3.5,-24]
RightLinkPoint [58.5,0.5,-24]
RightLinkPoint [41.5,-9,-24]
RightLinkPoint [-42.5,-9,-24]
RightLinkPoint [-54,-2,-24]
RightLinkPoint [-58,2.5,-24]
RightLinkPoint [-58,7,-24]
RightLinkPoint [-54,11,-24]

LeftLinkPoint [58.5,10.5,24]
LeftLinkPoint [61.5,7.5,24]
LeftLinkPoint [61.5,3.5,24]
LeftLinkPoint [58.5,0.5,24]
LeftLinkPoint [41.5,-9,24]
LeftLinkPoint [-42.5,-9,24]
LeftLinkPoint [-54,-2,24]
LeftLinkPoint [-58,2.5,24]
LeftLinkPoint [-58,7,24]
LeftLinkPoint [-54,11,24]

//----------------------------Damage
AddEmitter smoke 2 [-34,26,-25.25] [7,1,7] [0,0.5,0] -1 1 0 0.75 core
AddEmitter smoke 2 [-34,26,25.25] [7,1,7] [0,0.5,0] -1 1 0 0.75 core
AddEmitter smoke 2 [5,43,14] [3,1,3] [0,0.5,0] -1 1 0 0.75 turret

AddEmitter largesmoke 3 [-34,26,-25.25] [7,1,7] [0,1,0] -1 1 0 0.5 core
AddEmitter largesmoke 3 [-34,26,25.25] [7,1,7] [0,1,0] -1 1 0 0.5 core
AddEmitter largesmoke 2 [5,43,14] [3,1,3] [0,0.5,0] -1 1 0 0.5 turret

AddEmitter largesmoke 1 [-34,26,-25.25] [7,1,7] [0,1.5,0] -1 1 0 0.25 core
AddEmitter largesmoke 1 [-34,26,25.25] [7,1,7] [0,1.5,0] -1 1 0 0.25 core

AddEmitter flame 1 [-34,26,-25.25] [5,1,5] [0,1,0] -1 1 0 0.25 core
AddEmitter flame 1 [-34,26,25.25] [5,1,5] [0,1,0] -1 1 0 0.25 core
AddEmitter largesmoke 1 [5,43,14] [3,1,3] [0,1,0] -1 1 0 0.5 turret

Description American IFV_25mm Gun_Mk2 ATGM

//Barrel
ShootParticlesSecondary crit 0.5 0 0

ShootParticlesPrimary largesmoke 0.5 0 0.1
ShootParticlesPrimary largesmoke 0.5 0 -0.1
ShootParticlesPrimary largesmoke 0.5 0.06 0.06
ShootParticlesPrimary largesmoke 0.5 0.06 -0.06
ShootParticlesPrimary largesmoke 0.5 -0.06 0.06
ShootParticlesPrimary largesmoke 0.5 -0.06 -0.06
ShootParticlesPrimary largesmoke 0.5 -0.1 0
ShootParticlesPrimary largesmoke 0.5 0.1 0
ShootParticlesPrimary cloud 0.05 0 0.2
ShootParticlesPrimary cloud 0.05 0 -0.2
ShootParticlesPrimary cloud 0.05 0.13 0.13
ShootParticlesPrimary cloud 0.05 0.13 -0.13
ShootParticlesPrimary cloud 0.05 -0.13 0.13
ShootParticlesPrimary cloud 0.05 -0.13 -0.13
ShootParticlesPrimary cloud 0.05 -0.2 0
ShootParticlesPrimary cloud 0.05 0.2 0